<?php

/**

一个controller包含了一组类使的操作。


*/
class SiteController{


	public function index(){
		

		
		render('Site/index',array('name'=>'雷迅','desc'=>'是2暴'));
	
		$_SESSION['name']='fuck1';
		
		
	}

	public function fuck(){
		render('Site/fuck',array('username'=>$_POST['username']));

	}

/***
 登陆页面
*/
	public function logfom(){
			render('Site/logfom');
	}


/***
处理登陆的数据

*/
	public function loghand(){

		if($_POST['username']=='wxd') {
			$_SESSION['username']=$_POST['username'];
			header('Location: openlib.php?r=Site/index');
		}
				
		else	header('Location: openlib.php?r=Site/logfom');
	}

}


?>
